<template>
	<div>
		<headpage :username="username" routername="loginpage"></headpage>
		<homepageswiper></homepageswiper>
		<homepage></homepage>
		<tabfixed></tabfixed>
		<census></census>
		<makelist></makelist>
	</div>
</template>

<script>
	import headpage from "../components/headpage.vue"
	import homepage from "../components/homepage.vue"
	import tabfixed from "../components/tabfixed.vue"
	import homepageswiper from "../components/homepageswiper.vue"
	import census from"../components/census"
	import makelist from"../components/makelist.vue"

	export default {
		name: 'main2',
		components: {
			homepage,
			tabfixed,
			homepageswiper,
			headpage,
			census,
			makelist
		},
	    //动态变化主页名称
		computed:{
			username(){
				//取出数据  将字符串转化为对象
				var obj=JSON.parse(window.localStorage.getItem("logined")).username
				return obj
			},
		},
	}
</script>

<style scoped="scoped">

</style>
